package account.dao.mysql;

import java.sql.SQLException;
import java.util.ArrayList;

import account.dao.DrlDAO;
import account.model.DrlModel;

public class DrlMysqlDAOImpl implements DrlDAO {

	@Override
	public ArrayList<DrlModel> getDrl() throws SQLException {
		ModelHelper< DrlModel > helper = new ModelHelper<DrlModel>();
		return helper.getModel("select id_drl, content from drl", DrlModel.class);
	}

	@Override
	public ArrayList<DrlModel> saveDrl(ArrayList<DrlModel> models) 
			throws SQLException {
		ModelHelper< DrlModel> helper = new ModelHelper<DrlModel>();
		return helper.setModel(models, "drl");
		
	}

}
